<%@ page import="ingresso.Post" %>



<div class="fieldcontain ${hasErrors(bean: postInstance, field: 'titulo', 'error')} ">
	<label for="titulo">
		<g:message code="post.titulo.label" default="Titulo" />
		
	</label>
	<g:textField name="titulo" maxlength="140" value="${postInstance?.titulo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: postInstance, field: 'conteudo', 'error')} ">
	<label for="conteudo">
		<g:message code="post.conteudo.label" default="Conteudo" />
		
	</label>
	<g:textField name="conteudo" value="${postInstance?.conteudo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: postInstance, field: 'autor', 'error')} ">
	<label for="autor">
		<g:message code="post.autor.label" default="Autor" />
		
	</label>
	<g:textField name="autor" value="${postInstance?.autor}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: postInstance, field: 'dataPost', 'error')} required">
	<label for="dataPost">
		<g:message code="post.dataPost.label" default="Data Post" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataPost" precision="day"  value="${postInstance?.dataPost}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: postInstance, field: 'comentarios', 'error')} ">
	<label for="comentarios">
		<g:message code="post.comentarios.label" default="Comentarios" />
		
	</label>
	<g:select name="comentarios" from="${ingresso.Comentario.list()}" multiple="multiple" optionKey="id" size="5" value="${postInstance?.comentarios*.id}" class="many-to-many"/>
</div>

